#pragma once
#include <ostream>

using namespace std;

namespace cccn
{

/**
 * stream the contain of a container to a ostream object
 *
 * \param os the output streaming object
 * \param con the container whose elements are to be streamed
 * \param width the width that each element takes on the screen
 * \param seperator the seperator between each element
 */
template <typename Container> void
ShowVector (ostream& os, const Container& con, uint width = 0, string seperator = ",")
  {
  os << '(';
  for (Container::const_iterator it=con.begin ();it!=con.end ();)
    {
    os << setw (width) << *it;

    it++;
    if (it==con.end ())
      {
      break;
      }
    os << seperator;
    }
  os << ')' << endl;
  }

}; // namespace cccn
